import request from '@/utils/request'
// 权益列表
export function listEquity(query) {
    return request({
        url: '/system/equityCard/list',
        method: 'get',
        params: query
    })
}

//新增
export function addEquity(data) {
    return request({
        url: '/system/equityCard',
        method: 'post',
        data: data
    })
}
//修改
export function editEquity(data) {
    return request({
        url: '/system/equityCard/updateByid',
        method: 'post',
        data: data
    })
}
//删除
export function delEquity(id) {
    return request({
        url: `/system/equityCard/del/${id}`,
        method: 'post',

    })
}
